﻿@model EntertainmentManager.Models.Movie

@{
    ViewBag.Title = "Details";
}

<h2>Details</h2>

<fieldset>
    <legend>Movie</legend>

    <div class="display-label">
        @Html.DisplayNameFor(model => model.ImdbId)
        <b>@Html.DisplayFor(model => model.ImdbId)</b>
    </div>

    <div class="display-label">
        @Html.DisplayNameFor(model => model.Title)
        <b>@Html.DisplayFor(model => model.Title)</b>
    </div>

    <div class="display-label">
        @Html.DisplayNameFor(model => model.AltTitle)
        <b>@Html.DisplayFor(model => model.AltTitle)</b>
    </div>

    <div class="display-label">
        <table>
            @foreach (var dir in Model.Directors)
            {
                <tr>
                    <td>@dir.ImdbId</td>
                    <td>@dir.FullName</td>
                </tr>
            }
        </table>
    </div>
</fieldset>
<p>
    @Html.ActionLink("Edit", "Edit", new { id = Model.MovieId }) |
    @Html.ActionLink("Back to List", "Index")
</p>
